import request from '@/utils/request'

// 查询存放区信息列表
export function listMdStorageAreaInfo(query) {
  return request({
    url: '/storage/mdStorageAreaInfo/list',
    method: 'get',
    params: query
  })
}

// 查询存放区信息详细
export function getMdStorageAreaInfo(storeAreaId) {
  return request({
    url: '/storage/mdStorageAreaInfo/' + storeAreaId,
    method: 'get'
  })
}

// 新增存放区信息
export function addMdStorageAreaInfo(data) {
  return request({
    url: '/storage/mdStorageAreaInfo',
    method: 'post',
    data: data
  })
}

// 修改存放区信息
export function updateMdStorageAreaInfo(data) {
  return request({
    url: '/storage/mdStorageAreaInfo',
    method: 'put',
    data: data
  })
}

// 删除存放区信息
export function delMdStorageAreaInfo(storeAreaId) {
  return request({
    url: '/storage/mdStorageAreaInfo/' + storeAreaId,
    method: 'delete'
  })
}
